According to the idea of manually drawing a train diagram of the express and slow, the different proportions modularization thought of express and slow trains was proposed. Under the condition to satisfy the requirements of trains,the transitions and adjustments between different modules were added to meet the entrance/exit tracks of depot, so that the automatically generated diagram could meet the needs of designers. It can draw different full-day operation plans of different lines in particular proportions. Besides it can convert train diagram into CAD scripts and realize automatic drawing in CAD software. Finally, taking line 18 of Chengdu Metro as an example, the proposed method is implemented and its feasibility is proved.
The advantages of media player using component technique, such as automatic replacing decoders and dynamic upgrading, were analysed. With an example of DirectShow, how a media player with component technique works was illuminated. Afterwards, by analysing DirectShow in detail(on synchronization and controlling), DirectShow was simplified and improved, and a new set of interface definition was shown, a scheme of media player was implemented as well. This scheme was proved to be able to support hardware decoder, and be expanded to media capture.